import os

class Config:
    # 连接到 MySQL 数据库
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:zxq20040714@localhost/book'
    SQLALCHEMY_TRACK_MODIFICATIONS = False  # 禁用信号追踪
    SECRET_KEY = os.urandom(24)  # 为 session 和闪现消息设置密钥
